package org.metasketch.simulator.tools.transactions;

import java.util.ArrayList;
import java.util.List;

import org.metasketch.simulator.tools.generic.GenericInfo;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

@XStreamAlias("step")
public class StepDefinition extends GenericInfo {

	@XStreamAsAttribute
	protected String steps;

	@XStreamOmitField
	List<StepName> stepNames = new ArrayList<StepName>();

	@XStreamAsAttribute
	@XStreamAlias("duration")
	protected String durationExpression;

	@XStreamAsAttribute
	protected boolean atomic = false;

	@XStreamAsAttribute
	protected String staff;

	public String getSteps() {
		return steps;
	}

	public void setSteps(String steps) {
		this.steps = steps;
	}

	public String getDurationExpression() {
		return durationExpression;
	}

	public void setDurationExpression(String durationExpression) {
		this.durationExpression = durationExpression;
	}

	public boolean isAtomic() {
		return atomic;
	}

	public void setAtomic(boolean atomic) {
		this.atomic = atomic;
	}

	public String getStaff() {
		return staff;
	}

	public void setStaff(String staff) {
		this.staff = staff;
	}

	public List<StepName> getStepNames() {
		return stepNames;
	}

	public void setStepNames(List<StepName> stepNames) {
		this.stepNames = stepNames;
	}

}
